package cn.com.controler.AdminArticle;

import cn.com.controler.Admin.AdminDAOTemplete;
import cn.com.entity.AdminArticle;

import java.util.List;

public class AdminArticleDAO {
    //查询所有帖子
    public List<AdminArticle> getAll(){
        String str = "select article.ArticleId,user.Username,article.ArticleTitle,article.ArticleContent,article.ArticlePublishTime FROM article,user where article.ArticleUserId = user.UserId;";
        Object []arr = new Object[]{};
        return AdminArticleDAOTemplete.selectdata(str,arr);
    }
}
